<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<!-- <script src="https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su?wd=rt&cb=show"></script> -->
	<script>		
		function show(json){
			// alert(json.s);
			ul.innerHTML='';
			json.s.forEach(item=>{

				let li=document.createElement('li');
				let ul=document.getElementById('ul');

					li.innerHTML=item;
					ul.appendChild(li);
			})
		}
	</script>
	<script>
		window.onload=function(){
			let inp=document.getElementById('inp');
			let ul=document.getElementById('ul');
			inp.oninput=function(){

				let script=document.createElement('script');

				script.src=`https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su?wd=${inp.value}&cb=show`;

				document.head.appendChild(script);
			}
		}
	</script>
</head>
<body>
	<input type="text" id="inp">
	<ul id="ul"></ul>
</body>
</html>